package setup

import (
	"github.com/shinedone/srv-framework/pkg/asserts"
	"github.com/shinedone/srv-framework/pkg/beans"
	"github.com/shinedone/srv-server/internal/modules/enterprise/srv"
)

// 初始化Service
func ServiceInit() {
	// 初始化服务
	enterpriseSrv := &srv.EnterpriseSrv{}
	err := beans.ProvideBean(enterpriseSrv)
	asserts.Nil(err, err)

	// 注入
	err = beans.Populate()
	asserts.Nil(err, err)
}
